import 'package:flutter/material.dart';

class ListPage extends StatefulWidget {
  const ListPage({ Key? key }) : super(key: key);

  @override
  _ListPageState createState() => _ListPageState();
}

class _ListPageState extends State<ListPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('列表'),
      ),
      body: GridView.count(crossAxisCount: 2,
      children: List.generate(100, (index){
        return Center(
          child: Text('Item$index',style:Theme.of(context).textTheme.headlineSmall)
        );
      }),
      ),
    );
  }
}